Cocktail Help Reference
WithSyncInterceptor Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IEntityManagerProviderConfigurator<T> Interface : WithSyncInterceptor Method



syncInterceptor
The SyncInterceptor to be used.

Glossary Item Box

Configures the SyncInterceptor.

Syntax

Visual Basic (Declaration) 
Function WithSyncInterceptor( _
   ByVal syncInterceptor As IEntityManagerSyncInterceptor _
) As IEntityManagerProviderConfigurator(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IEntityManagerProviderConfigurator(Of T)
Dim syncInterceptor As IEntityManagerSyncInterceptor
Dim value As IEntityManagerProviderConfigurator(Of T)
 
value = instance.WithSyncInterceptor(syncInterceptor)
C# 
IEntityManagerProviderConfigurator<T> WithSyncInterceptor( 
   IEntityManagerSyncInterceptor syncInterceptor
)
C++/CLI 
IEntityManagerProviderConfigurator<T^>^ WithSyncInterceptor( 
   IEntityManagerSyncInterceptor^ syncInterceptor
) 

Parameters

syncInterceptor
The SyncInterceptor to be used.

Remarks

If no SyncInterceptor is configured, the EntityManagerProvider will try to discover it through the MEF container.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.